package wxd.mysqlitemanager.factory;

import java.util.HashMap;
import java.util.Map;

import wxd.mysqlitemanager.preference.impl.DefaultPreferenceManager;

public class BeanFactory {
	
	private static Map<String, Object> beans = new HashMap<String, Object>();
	
	static{
		beans.put(BeanNames.PREFERENCE_MANAGER, new  DefaultPreferenceManager());
	}
	
	public static  Object getBean(String beanName){
		return beans.get(beanName);
	}
}
